package com.qiaofang.collectmanage.dao.util;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Created by Administrator on 2017/8/14.
 */
@Component
@ConfigurationProperties("confUtils")
public class ConfigUtils {

    private ConfigUtils(){}

    private static String esClusterName;
    private static boolean esSniff;
    private static String esPingTimeout;
    private static boolean esIgnoreClusterName;
    private static String esNodesSamplerInterval;
    private static String esIP;
    private static int esPORT;

    private static String indexHswhCity;
    private static String indexHswhRentalHouse;
    private static String indexHswhSaleHouse;

    private static String indexHswhHouseAgent;
    private static String indexHswhOperatorLog;


    private static String hbaseZookeeperQuorum;
    private static String hbasePropertyClientPort;

    public static String getIndexHswhRentalHouse() {
        return indexHswhRentalHouse;
    }

    public static void setIndexHswhRentalHouse(String indexHswhRentalHouse) {
        ConfigUtils.indexHswhRentalHouse = indexHswhRentalHouse;
    }

    public static String getIndexHswhSaleHouse() {
        return indexHswhSaleHouse;
    }

    public static void setIndexHswhSaleHouse(String indexHswhSaleHouse) {
        ConfigUtils.indexHswhSaleHouse = indexHswhSaleHouse;
    }

    public static String getIndexHswhCity() {
        return indexHswhCity;
    }

    public static void setIndexHswhCity(String indexHswhCity) {
        ConfigUtils.indexHswhCity = indexHswhCity;
    }

    public static String getEsClusterName() {
        return esClusterName;
    }

    public static void setEsClusterName(String esClusterName) {
        ConfigUtils.esClusterName = esClusterName;
    }

    public static boolean isEsSniff() {
        return esSniff;
    }

    public static void setEsSniff(boolean esSniff) {
        ConfigUtils.esSniff = esSniff;
    }

    public static String getEsPingTimeout() {
        return esPingTimeout;
    }

    public static void setEsPingTimeout(String esPingTimeout) {
        ConfigUtils.esPingTimeout = esPingTimeout;
    }

    public static boolean isEsIgnoreClusterName() {
        return esIgnoreClusterName;
    }

    public static void setEsIgnoreClusterName(boolean esIgnoreClusterName) {
        ConfigUtils.esIgnoreClusterName = esIgnoreClusterName;
    }

    public static String getEsNodesSamplerInterval() {
        return esNodesSamplerInterval;
    }

    public static void setEsNodesSamplerInterval(String esNodesSamplerInterval) {
        ConfigUtils.esNodesSamplerInterval = esNodesSamplerInterval;
    }

    public static String getEsIP() {
        return esIP;
    }

    public static void setEsIP(String esIP) {
        ConfigUtils.esIP = esIP;
    }

    public static int getEsPORT() {
        return esPORT;
    }

    public static void setEsPORT(int esPORT) {
        ConfigUtils.esPORT = esPORT;
    }

    public static String getHbaseZookeeperQuorum() {
        return hbaseZookeeperQuorum;
    }

    public static void setHbaseZookeeperQuorum(String hbaseZookeeperQuorum) {
        ConfigUtils.hbaseZookeeperQuorum = hbaseZookeeperQuorum;
    }

    public static String getHbasePropertyClientPort() {
        return hbasePropertyClientPort;
    }

    public static void setHbasePropertyClientPort(String hbasePropertyClientPort) {
        ConfigUtils.hbasePropertyClientPort = hbasePropertyClientPort;
    }

    public static String getIndexHswhHouseAgent() {
        return indexHswhHouseAgent;
    }

    public static void setIndexHswhHouseAgent(String indexHswhHouseAgent) {
        ConfigUtils.indexHswhHouseAgent = indexHswhHouseAgent;
    }

    public static String getIndexHswhOperatorLog() {
        return indexHswhOperatorLog;
    }

    public static void setIndexHswhOperatorLog(String indexHswhOperatorLog) {
        ConfigUtils.indexHswhOperatorLog = indexHswhOperatorLog;
    }
}
